'use strict';
// 新人充值配置
module.exports = {
	/**
	 * XXXnameXXX
	 * @url admin/pages/kh/xcxpz/xrscpz/update 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let {
			data = {}, userInfo, util, filterResponse, originalParam
		} = event;
		let {
			customUtil,
			uniID,
			config,
			pubFun,
			vk,
			db,
			_
		} = util;
		let {
			uid
		} = data;
		let res = {
			code: 0,
			msg: ""
		};
		// 业务逻辑开始-----------------------------------------------------------

		res.update = await db.collection('a_config').where({
			name: "index_activity"
		}).update({
			active_name: data.active_name,
			pic: data.pic,
			jump_url: data.jump_url,
			status: data.status,
			signin_switch: data.signin_switch,
			signin_pic: data.signin_pic,
			xjqxk_switch: data.xjqxk_switch,
			xjqxk_pic: data.xjqxk_pic,
			record_switch: data.record_switch,
			xcx_kefu: data.xcx_kefu,
			xcx_kefu_text: data.xcx_kefu_text,
			fl_tags: data.fl_tags
		})

		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}